package com.samtech.spring.components;

import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Component;

import com.samtech.common.domain.IUser;

@Component("navigationedBean")
@Scope("session")
public class NavigationedBean {
 private IUser user;

public IUser getUser() {
	return user;
}

public void setUser(IUser user) {
	this.user = user;
}
 
String getViewId(){
	if(user!=null && user.getUserName()!=null)return "home.html";
	return "pretty:login";
}
 
}
